/*
 * Document.h
 *
 *  Created on: Apr 19, 2009
 *      Author: wrice
 */

#ifndef DOCUMENT_H_
#define DOCUMENT_H_

#include "DOMCore.h"
namespace DOMCore {

class Document: EXTENDS_INTERFACE( Node ) {
public:
	virtual Element * getDocumentElement() = 0;
	virtual NodeList * getElementsByTagName(DOMString tagname) = 0;

	virtual Element * createElement(DOMString tagName) throw(DOMExceptionPtr) = 0;
	virtual Attr * createAttribute(DOMString name) throw(DOMExceptionPtr) = 0;
	virtual Text * createTextNode(DOMString data) = 0;
};

}

#endif /* DOCUMENT_H_ */
